package org.footballmanager.pandafootball.system.form.impl;

import lombok.Getter;
import lombok.Setter;
import org.footballmanager.pandafootball.system.domain.FootCupbm;
import org.footballmanager.pandafootball.system.form.SearchForm;
import tk.mybatis.mapper.entity.Example;

import java.io.Serializable;

@Setter
@Getter
public class FootCupbmSearchForm extends SearchForm implements Serializable {
	private static final long serialVersionUID = 8090668615941861526L;
	protected String sj;

	public Example buildSearchCommond() {
		Example example = new Example(FootCupbm.class);
		Example.Criteria criteria = example.createCriteria();
		if(sj != null){
			criteria.andEqualTo("sj", sj);
		}
        criteria.andEqualTo("delFlag", 0);
		return example;
	}

}
